<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    
    <h:body>
        <ui:composition template="/WEB-INF/Templates/Template.xhtml">  
            <ui:define name="content">
                <f:view locale="#{lc.spraak}"/>
                <div align="center">
                    <h:form>
                        <h:panelGrid columns="3" border="0">
                            <h:column>
                                <h:outputText value="#{tekster.Brukernavn}"/>
                            </h:column>
                            <h:column>
                                <h:inputText required="true" requiredMessage="#{tekster.req_brukernavn}" value="#{rb.enDeltaker.epost}" id="bn"/>
                            </h:column>
                            <h:column>
                                <h:message for="bn" errorClass="errors"/>
                            </h:column>
                            <h:column>
                                <h:outputText value="#{tekster.gmlPassord}"/>
                            </h:column>
                            <h:column>
                                <h:inputSecret required="true" requiredMessage="#{tekster.req_gmlpw}" value="#{rb.gmlPassord}" id="gpw" />
                            </h:column>
                            <h:column>
                                <h:message for="gpw" errorClass="errors"/>
                            </h:column>
                            <h:column>
                                <h:outputText value="#{tekster.nyttPassord}"/>
                            </h:column>
                            <h:column>
                                <h:inputSecret required="true" requiredMessage="#{tekster.req_nyttpw}" id="npw" value="#{rb.enDeltaker.passord1}" validatorMessage="#{tekster.val_passord}" converter="#{string}">
                                    <f:validateRegex pattern="#{tekster.regexPassord}" id="tall"/>
                                </h:inputSecret>
                            </h:column>
                            <h:column>
                                <h:message for="npw" errorClass="errors"/>
                            </h:column>
                            <h:column>
                                <h:outputText value="#{tekster.Passord2}"/>
                            </h:column>
                            <h:column>
                                <h:inputSecret required="true" requiredMessage="#{tekster.req_gjpw}" id="npw2" value="#{rb.enDeltaker.passord2}"/>
                            </h:column>
                            <h:column>
                                <h:message for="npw2" errorClass="errors"/>
                            </h:column>
                            <h:column>
                                <h:commandButton value="#{tekster.Bytt}" action="#{rb.byttPassord()}"/>
                            </h:column>
                            <h:column>
                                <h:commandButton value="#{tekster.Tilbake}" action="/login" immediate="true"/>
                            </h:column>
                        </h:panelGrid>
                    </h:form>
                </div>
            </ui:define>
        </ui:composition>
    </h:body>
</html>